pub fn new_count_distinct(input_str: &str) -> usize {
    // create a hashset to make the input_str distinct
    let mut set = std::collections::HashSet::new();
    for s in input_str.split(",")  {
        set.insert(s);
    }
    // return length of the hashset 
    set.len()
}
